
<form name="form" method="post" action="{[$root]}{[$deleteLink]}{[$p1]}{[$p3]}">
<table>
	<tr align="center">
		<th width="40"><input type="checkbox" class="check" name="chkall" value="on" onclick="chkbox(this.form)"></th>
		<th width="40">序号</th>
		<th>流水号</th>
		<th>日期</th>
		<th>车辆</th>
		<th width="40"></th>

		<th>里程</th>
		<th>油量(升)</th>
		<th>费用(元)</th>		
		<th>价格(元/升)</th>
		
		<th>油耗(升/100KM)</th>
		
		<th>负责人</th>
		<th>录入员</th>
		<th>{[$orderby]}</th>
	</tr>
	{[foreach name=outer key=key item=item from=$result]} 
	{[assign var="no" value="`$key+$pager->from+1`"]} 
	{[assign var="t1" value="`$t1+$item.quantity`"]}
	{[assign var="t2" value="`$t2+$item.cost`"]}	
	{[assign var="price" value="`$item.cost/$item.quantity`"]}
	
	{[if $item.km gt 0]} 
	{[assign var="t3" value="`$t3+$item.km`"]}
	{[assign var="t4" value="`$t4+$item.quantity`"]}
	{[/if]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td><input type="checkbox" class="check" name="c_{[$item.id]}" value="{[$item.id]}"></td>
		<td>{[$no]}</td>
		<td><a href="javascript:void(0)"
			onclick="Common.dialog_view_('{[$root]}{[$viewLink]}&id={[$item.id]}', '查看信息', '650x420')">{[$item.id]}</a></td>		
		<td>{[$item.date]}</td>
		<td><a href="javascript:void(0)"
			onclick="Common.dialog_view_('car.php?do=Car.view&id={[$item.car]}', '车辆信息', '650x420')">{[$item.car_t]}</a></td>
		<td><a href="javascript:void(0)" onclick="Oil.popup(event, '{[$p2]}&p={[$p]}', {[$item.id]}, {[$item.status]})">[管理]</a></td>

		<td>{[$item.km]}({[$item.km1]}至{[$item.km2]})</td>
		<td>{[$item.quantity|money]}</td>
		<td>{[$item.cost|money]}</td>
		<td>{[$price|money]}</td>
		
		<td>{[$item.wear|money]}</td>
		<td><a href="javascript:void(0)" onclick="emp({[$item.emp]})">{[$item.emp_t]}</a></td>
		<td><a href="javascript:void(0)" onclick="emp({[$item.oper]})">{[$item.oper_t]}</a></td>

		<td>{[$item.orderby_x]}</td>
	</tr>
	{[/foreach]}
	{[assign var="price" value="`$t2/$t1`"]}
	{[assign var="wear" value="`$t4/$t3`"]}
	<tr align="center">
		<td><input type="button" name="delete" value="删除" onclick="Maintain.expunge_(this.form)"></td>
		<td colspan="6"></td>
		<td>{[$t1|money]}</td>
		<td>{[$t2|money]}</td>
		<td>{[$price|money]}</td>
		<td>{[$wear*100|money]}</td>
		<td colspan="3"></td>
	</tr>
</table>
</form>

{[include file="footer.tpl"]}
